package com.qf;

import com.qf.pojo.TabUser;
import com.qf.pojo.User;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {
    @Test
    public  void  test1(){

        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext ( "spring-config.xml" );

        User user = (User) applicationContext.getBean ( "user" );
        System.out.println (user );


    }
    @Test
    public  void  test2(){

        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext ( "spring-config.xml" );

        TabUser tabUser = (TabUser) applicationContext.getBean ( "tabUser" );
        System.out.println (tabUser );


    }
}
